Integrand size = 10, antiderivative size = 12 \[ \int \frac {1}{\sqrt {1+\cot ^2(x)}} \, dx=-\frac {\cot (x)}{\sqrt {\csc ^2(x)}} \]
[Out]
Time = 0.02 (sec) , antiderivative size = 12, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 3, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.300, Rules used = {3738, 4207, 197} \[ \int \frac {1}{\sqrt {1+\cot ^2(x)}} \, dx=-\frac {\cot (x)}{\sqrt {\csc ^2(x)}} \]
[In]
[Out]
Rule 197
Rule 3738
Rule 4207
Rubi steps \begin{align*} \text {integral}& = \int \frac {1}{\sqrt {\csc ^2(x)}} \, dx \\ & = -\text {Subst}\left (\int \frac {1}{\left (1+x^2\right )^{3/2}} \, dx,x,\cot (x)\right ) \\ & = -\frac {\cot (x)}{\sqrt {\csc ^2(x)}} \\ \end{align*}
Time = 0.03 (sec) , antiderivative size = 12, normalized size of antiderivative = 1.00 \[ \int \frac {1}{\sqrt {1+\cot ^2(x)}} \, dx=-\frac {\cot (x)}{\sqrt {\csc ^2(x)}} \]
[In]
[Out]
Time = 0.02 (sec) , antiderivative size = 13, normalized size of antiderivative = 1.08
method | result | size |
derivativedivides | \(-\frac {\cot \left (x \right )}{\sqrt {\cot \left (x \right )^{2}+1}}\) | \(13\) |
default | \(-\frac {\cot \left (x \right )}{\sqrt {\cot \left (x \right )^{2}+1}}\) | \(13\) |
risch | \(-\frac {i {\mathrm e}^{2 i x}}{2 \sqrt {-\frac {{\mathrm e}^{2 i x}}{\left ({\mathrm e}^{2 i x}-1\right )^{2}}}\, \left ({\mathrm e}^{2 i x}-1\right )}-\frac {i}{2 \left ({\mathrm e}^{2 i x}-1\right ) \sqrt {-\frac {{\mathrm e}^{2 i x}}{\left ({\mathrm e}^{2 i x}-1\right )^{2}}}}\) | \(67\) |
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 21 vs. \(2 (10) = 20\).
Time = 0.26 (sec) , antiderivative size = 21, normalized size of antiderivative = 1.75 \[ \int \frac {1}{\sqrt {1+\cot ^2(x)}} \, dx=-\frac {1}{2} \, \sqrt {2} \sqrt {-\frac {1}{\cos \left (2 \, x\right ) - 1}} \sin \left (2 \, x\right ) \]
[In]
[Out]
Time = 0.19 (sec) , antiderivative size = 14, normalized size of antiderivative = 1.17 \[ \int \frac {1}{\sqrt {1+\cot ^2(x)}} \, dx=- \frac {\cot {\left (x \right )}}{\sqrt {\cot ^{2}{\left (x \right )} + 1}} \]
[In]
[Out]
none
Time = 0.31 (sec) , antiderivative size = 10, normalized size of antiderivative = 0.83 \[ \int \frac {1}{\sqrt {1+\cot ^2(x)}} \, dx=-\frac {1}{\sqrt {\tan \left (x\right )^{2} + 1}} \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 28 vs. \(2 (10) = 20\).
Time = 0.28 (sec) , antiderivative size = 28, normalized size of antiderivative = 2.33 \[ \int \frac {1}{\sqrt {1+\cot ^2(x)}} \, dx=\frac {2}{{\left (\frac {\cos \left (x\right ) - 1}{\cos \left (x\right ) + 1} - 1\right )} \mathrm {sgn}\left (\sin \left (x\right )\right )} + 2 \, \mathrm {sgn}\left (\sin \left (x\right )\right ) \]
[In]
[Out]
Time = 13.11 (sec) , antiderivative size = 12, normalized size of antiderivative = 1.00 \[ \int \frac {1}{\sqrt {1+\cot ^2(x)}} \, dx=-\frac {\sin \left (2\,x\right )}{2\,\sqrt {{\sin \left (x\right )}^2}} \]
[In]
[Out]